package control;
import java.util.HashMap;

import org.bushe.swing.event.annotation.EventTopicSubscriber;

import model.Model;
import model.Player;
import view.View;

public class Main {
	
	static Model model;
	static View view;

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		view = new View();
		model = new Model();
	}
	
	
	
	/**
	 * The following functions are eventhandlers, and specify
	 * how the program should react to various events coming over
	 * the EventBus.
	 * 
	 * This is a crucial stage of functionality: the program should react
	 * to events in accordance with the values of it's state variables - it
	 * should for example not accept a new dicethrow if one has already been 
	 * done. 
	 */
	@EventTopicSubscriber(topic="DICETHROW")
	public void dicethrowEvent(String topic, Object data) {
		
	}
	
	@EventTopicSubscriber(topic="SELECT_SPOT")
	public void selectSpotEvent(String topic, Object data) {
		
	}
	
	@EventTopicSubscriber(topic="SELECT_PLAYER")
	public void selectPlayerEvent(String topic, Object data) {
		
	}
	
	@EventTopicSubscriber(topic="TURNTIMER")
	public void turnTimerEvent(String topic, Object data) {
		
	}
	
	@EventTopicSubscriber(topic="NEWGAME")
	public void newGameEvent(String topic, HashMap<Integer, Player> players) {
		System.out.println("Did it get here?");
	}
}